﻿<controls:ChildWindow x:Class="TakeAPicture.WebCamControl"
           xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" 
           xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" 
           xmlns:controls="clr-namespace:System.Windows.Controls;assembly=System.Windows.Controls"
           Width="400" Height="350" 
           Title="Take a picture">
    <Grid x:Name="LayoutRoot" Margin="2">
        <Grid.RowDefinitions>
            <RowDefinition />
            <RowDefinition Height="Auto" />
        </Grid.RowDefinitions>
        <StackPanel HorizontalAlignment="Center">
            <Rectangle x:Name="rectWebCamView" Width="400" Height="300"/>
        </StackPanel>
        <StackPanel Orientation="Horizontal" Grid.Row="1" HorizontalAlignment="Center">
            <Button x:Name="btnCaptureDevice" Content="Capture Device" Margin="2"/>
            <Button x:Name="btnPlayCapture" Content="Start Capture" Margin="2"/>
            <Button x:Name="btnStopCapture" Content="Stop Capture" Margin="2"/>
            <Button x:Name="CancelButton" Content="Cancel" Click="CancelButton_Click" HorizontalAlignment="Right" Margin="2" Grid.Row="1" />
            <Button x:Name="OKButton" Content="OK" Click="OKButton_Click" HorizontalAlignment="Right" Margin="5" Grid.Row="1" />
        </StackPanel>
    </Grid>
</controls:ChildWindow>